package cn.itcast.ks.mapper;

import cn.itcast.ks.pojo.entity.Assignment;
import cn.itcast.ks.pojo.entity.UserStudentAssignment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fasterxml.jackson.databind.ser.Serializers;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

/**
 * @author mwj
 * @date 2021/12/5
 * @TIME:17:38
 */
//
@Mapper
public interface AssignmentMapper extends BaseMapper<Assignment>{

    @Insert("INSERT into assignment VALUES (null,#{userId},#{name},#{memo},#{type},#{createdOn},NULL)")
     void addAss(Assignment assignment);
}
